<?php /* Smarty version 2.6.18, created on 2008-02-26 15:38:07
         compiled from admin_montagnes.tpl */ ?>
<script type="text/javascript" >
<?php echo '
	function loadMontagne() {
		var no = document.getElementById("noMontagne");
		var noMontagne = no.options[no.selectedIndex].value;
		window.location.replace("'; ?>
<?php echo $_SERVER['PHP_SELF']; ?>
<?php echo '?noMontagne=" + noMontagne);
	}
'; ?>

</script>
<span class="title_blue">Administration des montagnes</span><br /><br />
<select name="noMontagne" id="noMontagne" onChange="loadMontagne()" >
	<option value="0" >Choisissez une montagne</option>
	<?php $_from = $this->_tpl_vars['montagnesListing']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['montagne']):
?>
		<option value="<?php echo $this->_tpl_vars['montagne']['noMontagne']; ?>
"><?php echo $this->_tpl_vars['montagne']['nom']; ?>
</option>
	<?php endforeach; endif; unset($_from); ?>
</select>
<br /><br />
<?php if ($this->_tpl_vars['modeModif'] == 1): ?>
	<div style="text-align:left;"><a href="<?php echo $_SERVER['PHP_SELF']; ?>
?del=<?php echo $this->_tpl_vars['montModif']['noMontagne']; ?>
" title="Supprimer cette montagne">Supprimer</a></div>
<?php endif; ?>
<form name="admin_montagne" action="<?php echo $_SERVER['PHP_SELF']; ?>
" method="post">
<fieldset>
	<input type="hidden" name="noMontagne" id="noMontagne" value="<?php echo $this->_tpl_vars['montModif']['noMontagne']; ?>
"  />
	<strong>Nom de la monatgne</strong>
	<br />
	<input type="text" name="nomMontagne" id="nomMontagne" size="50" value="<?php echo $this->_tpl_vars['montModif']['nom']; ?>
"  />
	<br /><br />
	<strong>Description</strong>
	<br />
	<textarea name="descriptionMontagne" id="descriptionMontagne" cols="50" rows="5" ><?php echo $this->_tpl_vars['montModif']['description']; ?>
</textarea>
	<br /><br />
	<strong>Latitude</strong>
	<br />
	<input type="text" name="latitudeMontagne" id="latitudeMontagne" value="<?php echo $this->_tpl_vars['montModif']['latitude']; ?>
"  />
	<br /><br />
	<strong>Longitude</strong>
	<br />
	<input type="text" name="longitudeMontagne" id="longitudeMontagne" value="<?php echo $this->_tpl_vars['montModif']['longitude']; ?>
"  />
	<br /><br />
	<strong>Url</strong>
	<br />
	<input type="text" name="urlMontagne" id="urlMontagne" value="<?php echo $this->_tpl_vars['montModif']['url']; ?>
"  />
	<br /><br />
	<input type="submit" name="btn_ajout" id="btn_ajout" value="Ajouter / Modifier"  />
</fieldset>
</form>
<br /><br />